﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<div id="equipmentTypeListTable" class="main-content">
    <h3 class="page-title">设备类型管理Equipment type management</h3>

    <!-- TABLE  -->
    <div class="panel">
        <div class="panel-body">
            <button class="btn btn-primary" v-on:click="AddType">
                <i class="fa fa-plus"></i> 新增设备类型New equipment type
            </button>
            <br />
            <br />
            <table class="table table-striped"  v-if="isNotEmptyObject(typeList)">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>设备类型Equipment type</th>
                        <th>操作operation</th>
                    </tr>
                </thead>
                <tbody v-for="(type, index) in typeList">
                    <tr>
                        <td>{{type.ID}}</td>
                        <td>{{type.Name}}</td>
                        <td>
                            <button type="button" class="btn btn-info btn-xs" v-on:click="EditType(type)">
                                <i class="fa fa-edit"></i> 编辑edit
                            </button>
                            <button type="button" class="btn btn-danger btn-xs" v-on:click="DeleteType(type)">
                                <i class="fa fa-trash"></i> 删除delete
                            </button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!-- END TABLE -->

</div>


@section scripts{
    <script type="text/javascript" src="~/Scripts/pageJs/Equipment/Type.js?v=@DateTime.Now.ToFileTimeUtc()"></script>
}
